#ifndef _C_RENDERER_DX9_H_
#define _C_RENDERER_DX9_H_

#include "SRenderer.h"

#include <d3d9.h>
#include <vector>

using namespace std;

class CViewD3D9;
class CImage;

class SRendererDX9 : public SRenderer
{
	DECLARE_SINGLETON_INHERIT(SRendererDX9);
public:
	SRendererDX9();
	~SRendererDX9();

	bool	loadTexture		(CImage& oImage);
	void	unloadTexture	(CImage& oImage);

	LPDIRECT3D9			m_pD3d;
	vector<CViewD3D9*>	m_pViews;
	CViewD3D9*			m_pActiveView;

private:
	D3DCAPS9			m_oCaps;
};

#endif
